import request from '@/utils/request'

// 查询员工与打卡类型绑定列表
export function listClockbinding(query) {
  return request({
    url: '/module/clockbinding/list',
    method: 'get',
    params: query
  })
}

// 查询员工与打卡类型绑定详细
export function getClockbinding(id) {
  return request({
    url: '/module/clockbinding/' + id,
    method: 'get'
  })
}

// 新增员工与打卡类型绑定
export function addClockbinding(data) {
  return request({
    url: '/module/clockbinding',
    method: 'post',
    data: data
  })
}

// 修改员工与打卡类型绑定
export function updateClockbinding(data) {
  return request({
    url: '/module/clockbinding',
    method: 'put',
    data: data
  })
}

// 删除员工与打卡类型绑定
export function delClockbinding(id) {
  return request({
    url: '/module/clockbinding/' + id,
    method: 'delete'
  })
}
